import React, {Component} from 'react';
import {Platform, StyleSheet, Text, Linking, View,Alert, TextInput, Button} from 'react-native';
import getDeviceAsync from './usb'



export default  class App extends Component {
    constructor(props) {
        super(props)
    }
    componentDidMount() {
        getDeviceAsync().then((data) => {
            Alert.alert('提示', '11'+data.deviceList+'  22'+data.usbSerialDevice,[
                {text: 'ensure', onPress: () => {}}
            ])
        })
    }
    render() {
        <View>
           <Text>
               USB!!
           </Text>

        </View>
    }
}